A Parametrizable Dataflow Implementation of Optical Flow

نویسندگان

  • Reinier van Kampenhout
  • Sander Stuijk
  • Kees Goossens
چکیده

An increasing number of products feature complex functionality through the use of embedded computers. By collecting large amounts of data from multiple sensors and interpreting and responding to complex scenarios in realtime, such devices can become “smart.” For a control algorithm to make a decision, data from the sensors must be processed before a certain deadline. These constraints may be hardor soft-real-time, and a combination of SRT or HRT applications may be executed on one platform [2]. In streaming applications such as multimedia and signal processing, the dataflow model of computation (MoC) is a good fit because these applications are inherently data-driven [3]. A dataflow program consists of a graph of actors that communicate tokens through channels. An actor can only fire (execute) if all of its input tokens are available, and if there is enough space on its outgoing channels to produce all tokens. Some dataflow flavours such as mode-controlled dataflow (MCDF) and scenario-aware dataflow (SADF) can be used to deal with dynamic behaviour within one application [4, 5]. In this research we consider the processing of image data to obtain direction vectors of moving objects, on the basis of which control algorithms can make decisions. In particular, we use the optical flow algorithm which is commonly used to track features in a sequence of moving images. To execute this algorithm on a contemporary multi-core streaming platform with high performance and while meeting timing constraints, it is useful have a dataflow implementation. Our implementation is based on the algorithm described in [1]. After refactoring in the C language and removal of any dependencies on the external libraries, we ported the algorithm to our CompSOC platform [2]. To distribute the functionality over multiple dataflow actors we recognized three main stages: the loading of frames into local memory, the initial detection of features in a frame, and the optical flow that detects identical features in two consecutive frames. After splitting the algorithm in these three stages it was parallelized and parametrized. The implementation thus obtained allows to exploit the benefits of the aforementioned mode-control and scenario-aware dataflow MoC, as the parameters can be used to set different modes or use-cases. Parallelization is straightforward as frames are split up in blocks and the calculation on each block is completely independent of other blocks. Parameters that can be adjusted are the frame size, the number of cores that will process a fraction of a frame in parallel, and optical flow parameters, namely: threshold, maximum allowed error and window size. The resulting graph for an implementation with two cores is depicted in Figure 1. Actor a is added to determine or receive the parameters, which are stored in its self-edge. These are forwarded to actor c, f and b.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Supporting Iteration in a Heterogeneous Dataflow Engine

Dataflow execution engines such as MapReduce, DryadLINQ, and PTask have enjoyed success because they simplify development for a class of important parallel applications. These systems sacrifice generality for simplicity: while many workloads are easily expressed, important idioms like iteration and recursion are difficult to express and support efficiently. We consider the problem of extending ...

متن کامل

Robot Motion Vision Part II: Implementation

The idea of Fixation introduced a direct method for general recovery of shape and motion from images without using either feature correspondence or optical flow [1,2]. There are some parameters which have important effects on the performance of fixation method. However, the theory of fixation does not say anything about the autonomous and correct choice of those parameters. This paper presents ...

متن کامل

Computation Optical Flow Using Pipeline Architecture

Accurate estimation of motion from time-varying imagery has been a popular problem in vision studies, This information can be used in segmentation, 3D motion and shape recovery, target tracking, and other problems in scene analysis and interpretation. We have presented a dynamic image model for estimating image motion from image sequences, and have shown how the solution can be obtained from a ...

متن کامل

Survey and Comparison of Optical Switch Fabrication Techniques and Architectures

The main issue in the optical transmission is switching speed. The optical packet switching faces many significant challenges in processing and buffering. The generalized multilevel protocol switching seeks to eliminate the asynchronous transfer mode and synchronous optical network layer, hence the implementation of IP over WDM (wave length division multiplexing). Optical burst switching attemp...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014